.palette-window {
  position: fixed;
  right: 18px;
  top: 110px;
  width: 300px;
  max-height: 65vh;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  transform: translateY(-140%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  display: grid;
  grid-template-rows: auto 1fr;
  z-index: 1280;
}

.palette-window.is-active {
  transform: translateY(0);
  opacity: 1;
}

.palette-window__body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.palette-search {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(247, 249, 253, 0.95);
  color: #1c2c47;
  box-shadow: 0 8px 18px rgba(12, 29, 64, 0.08);
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.color-swatch {
  border-radius: 10px;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(12, 29, 64, 0.1);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
}
